package com.learn.my.dao;

import com.learn.my.bean.User;
import com.learn.my.bean.UserExample;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.ibatis.annotations.Insert;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Repository;

/**
 * UserDAO继承基类
 */
public interface UserDAO extends MyBatisBaseDao<User, Integer, UserExample> {

    @Insert("insert user (name,password) values (#name,#password)")
    int insertNewUser(String name,String password);
}